Fixture Setup Patterns
Recent Changes
| Delegated Setup | Category: Fixture Setup Patterns | 18 February 2007 |
| Each test creates its own Fresh Fixture by calling
Creation Methods from within the Test Methods. |
||
| SuiteFixture Setup | Category: Fixture Setup Patterns | 6 November 2006 |
| We build/destroy the shared fixture in special methods called by the
Test Automation Framework before/after the first/last Test Method is called. |
||
| Lazy Setup | Category: Fixture Setup Patterns | 6 November 2006 |
| We use Lazy Initialization of the fixture to create it in
the first test that needs it. |
||
| Shared Fixture Construction: | Category: Fixture Setup Patterns | 6 November 2006 |
| Pick an appropriate strategy for when to construct the Shared Fixture. |
||
| Chained Tests | Category: Fixture Setup Patterns | 6 November 2006 |
| We let the other tests in a test suite set up the test fixture. |
||
| Prebuilt Fixture | Category: Fixture Setup Patterns | 6 November 2006 |
| Build the Shared Fixture separately from running the
tests. |
||
| Setup Decorator | Category: Fixture Setup Patterns | 6 November 2006 |
| We wrap the test suite with a Decorator that sets up the
shared test fixture before running the tests and tears it down after all the tests
are done. |
||
| Creation Method | Category: Fixture Setup Patterns | 14 October 2006 |
| Set up the test fixture by calling methods that hide the mechanics of
building ready-to-use objects behind Intent Revealing Names. |
||
| Fresh Fixture Setup: | Category: Fixture Setup Patterns | 1 October 2006 |
| Pick an appropriate strategy for organizing the code that sets up the test
fixture. |
||
| Inline Setup | Category: Fixture Setup Patterns | 25 October 2003 |
| Each Test Method creates it's own Fresh Fixture
by calling the appropriate constructor methods to build exactly the test fixture it
requires. |
||
| Implicit Setup | Category: Fixture Setup Patterns | 10 October 2003 |
| Build the test fixture common to several tests in the setUp
method. |
||
Copyright © 2003-2008 Gerard Meszaros all rights reserved
